<?php
class WordsModel extends Model {

	protected function get_primary_key() {
		return $this->primary_key = 'word_id';
	}

	protected function get_table_fields() {
		return $this->table_field = array (
  0 => 'word_id',
  1 => 'word_name',
  2 => 'word_replace',
);
	}
    
    /**
     * 清空数据表内容缓存文件
     */
    public function clear_cache_file() {
        
        $cache_db = Controller::instance('cache_db');
        
        $cache_db->delete('words');
    }
}